Optimal. Leaf size=261 \[ \frac {(A b-a B) x^{3/2}}{2 a b \left (a+b x^2\right )}-\frac {(A b+3 a B) \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}\right )}{4 \sqrt {2} a^{5/4} b^{7/4}}+\frac {(A b+3 a B) \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}\right )}{4 \sqrt {2} a^{5/4} b^{7/4}}+\frac {(A b+3 a B) \log \left (\sqrt {a}-\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}+\sqrt {b} x\right )}{8 \sqrt {2} a^{5/4} b^{7/4}}-\frac {(A b+3 a B) \log \left (\sqrt {a}+\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}+\sqrt {b} x\right )}{8 \sqrt {2} a^{5/4} b^{7/4}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.13, antiderivative size = 261, normalized size of antiderivative = 1.00, number of steps
used = 11, number of rules used = 8, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.364, Rules used = {468, 335, 303,
1176, 631, 210, 1179, 642} \begin {gather*} -\frac {(3 a B+A b) \text {ArcTan}\left (1-\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}\right )}{4 \sqrt {2} a^{5/4} b^{7/4}}+\frac {(3 a B+A b) \text {ArcTan}\left (\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}+1\right )}{4 \sqrt {2} a^{5/4} b^{7/4}}+\frac {(3 a B+A b) \log \left (-\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}+\sqrt {a}+\sqrt {b} x\right )}{8 \sqrt {2} a^{5/4} b^{7/4}}-\frac {(3 a B+A b) \log \left (\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}+\sqrt {a}+\sqrt {b} x\right )}{8 \sqrt {2} a^{5/4} b^{7/4}}+\frac {x^{3/2} (A b-a B)}{2 a b \left (a+b x^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 210
Rule 303
Rule 335
Rule 468
Rule 631
Rule 642
Rule 1176
Rule 1179
Rubi steps
\begin {align*} \int \frac {\sqrt {x} \left (A+B x^2\right )}{\left (a+b x^2\right )^2} \, dx &=\frac {(A b-a B) x^{3/2}}{2 a b \left (a+b x^2\right )}+\frac {\left (\frac {A b}{2}+\frac {3 a B}{2}\right ) \int \frac {\sqrt {x}}{a+b x^2} \, dx}{2 a b}\\ &=\frac {(A b-a B) x^{3/2}}{2 a b \left (a+b x^2\right )}+\frac {\left (\frac {A b}{2}+\frac {3 a B}{2}\right ) \text {Subst}\left (\int \frac {x^2}{a+b x^4} \, dx,x,\sqrt {x}\right )}{a b}\\ &=\frac {(A b-a B) x^{3/2}}{2 a b \left (a+b x^2\right )}-\frac {(A b+3 a B) \text {Subst}\left (\int \frac {\sqrt {a}-\sqrt {b} x^2}{a+b x^4} \, dx,x,\sqrt {x}\right )}{4 a b^{3/2}}+\frac {(A b+3 a B) \text {Subst}\left (\int \frac {\sqrt {a}+\sqrt {b} x^2}{a+b x^4} \, dx,x,\sqrt {x}\right )}{4 a b^{3/2}}\\ &=\frac {(A b-a B) x^{3/2}}{2 a b \left (a+b x^2\right )}+\frac {(A b+3 a B) \text {Subst}\left (\int \frac {1}{\frac {\sqrt {a}}{\sqrt {b}}-\frac {\sqrt {2} \sqrt [4]{a} x}{\sqrt [4]{b}}+x^2} \, dx,x,\sqrt {x}\right )}{8 a b^2}+\frac {(A b+3 a B) \text {Subst}\left (\int \frac {1}{\frac {\sqrt {a}}{\sqrt {b}}+\frac {\sqrt {2} \sqrt [4]{a} x}{\sqrt [4]{b}}+x^2} \, dx,x,\sqrt {x}\right )}{8 a b^2}+\frac {(A b+3 a B) \text {Subst}\left (\int \frac {\frac {\sqrt {2} \sqrt [4]{a}}{\sqrt [4]{b}}+2 x}{-\frac {\sqrt {a}}{\sqrt {b}}-\frac {\sqrt {2} \sqrt [4]{a} x}{\sqrt [4]{b}}-x^2} \, dx,x,\sqrt {x}\right )}{8 \sqrt {2} a^{5/4} b^{7/4}}+\frac {(A b+3 a B) \text {Subst}\left (\int \frac {\frac {\sqrt {2} \sqrt [4]{a}}{\sqrt [4]{b}}-2 x}{-\frac {\sqrt {a}}{\sqrt {b}}+\frac {\sqrt {2} \sqrt [4]{a} x}{\sqrt [4]{b}}-x^2} \, dx,x,\sqrt {x}\right )}{8 \sqrt {2} a^{5/4} b^{7/4}}\\ &=\frac {(A b-a B) x^{3/2}}{2 a b \left (a+b x^2\right )}+\frac {(A b+3 a B) \log \left (\sqrt {a}-\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}+\sqrt {b} x\right )}{8 \sqrt {2} a^{5/4} b^{7/4}}-\frac {(A b+3 a B) \log \left (\sqrt {a}+\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}+\sqrt {b} x\right )}{8 \sqrt {2} a^{5/4} b^{7/4}}+\frac {(A b+3 a B) \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}\right )}{4 \sqrt {2} a^{5/4} b^{7/4}}-\frac {(A b+3 a B) \text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}\right )}{4 \sqrt {2} a^{5/4} b^{7/4}}\\ &=\frac {(A b-a B) x^{3/2}}{2 a b \left (a+b x^2\right )}-\frac {(A b+3 a B) \tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}\right )}{4 \sqrt {2} a^{5/4} b^{7/4}}+\frac {(A b+3 a B) \tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt [4]{b} \sqrt {x}}{\sqrt [4]{a}}\right )}{4 \sqrt {2} a^{5/4} b^{7/4}}+\frac {(A b+3 a B) \log \left (\sqrt {a}-\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}+\sqrt {b} x\right )}{8 \sqrt {2} a^{5/4} b^{7/4}}-\frac {(A b+3 a B) \log \left (\sqrt {a}+\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}+\sqrt {b} x\right )}{8 \sqrt {2} a^{5/4} b^{7/4}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.51, size = 152, normalized size = 0.58 \begin {gather*} \frac {\frac {4 \sqrt [4]{a} b^{3/4} (A b-a B) x^{3/2}}{a+b x^2}-\sqrt {2} (A b+3 a B) \tan ^{-1}\left (\frac {\sqrt {a}-\sqrt {b} x}{\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}}\right )-\sqrt {2} (A b+3 a B) \tanh ^{-1}\left (\frac {\sqrt {2} \sqrt [4]{a} \sqrt [4]{b} \sqrt {x}}{\sqrt {a}+\sqrt {b} x}\right )}{8 a^{5/4} b^{7/4}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.08, size = 146, normalized size = 0.56
method | result | size |
derivativedivides | \(\frac {\left (A b -B a \right ) x^{\frac {3}{2}}}{2 a b \left (b \,x^{2}+a \right )}+\frac {\left (A b +3 B a \right ) \sqrt {2}\, \left (\ln \left (\frac {x -\left (\frac {a}{b}\right )^{\frac {1}{4}} \sqrt {x}\, \sqrt {2}+\sqrt {\frac {a}{b}}}{x +\left (\frac {a}{b}\right )^{\frac {1}{4}} \sqrt {x}\, \sqrt {2}+\sqrt {\frac {a}{b}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {x}}{\left (\frac {a}{b}\right )^{\frac {1}{4}}}+1\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {x}}{\left (\frac {a}{b}\right )^{\frac {1}{4}}}-1\right )\right )}{16 a \,b^{2} \left (\frac {a}{b}\right )^{\frac {1}{4}}}\) | \(146\) |
default | \(\frac {\left (A b -B a \right ) x^{\frac {3}{2}}}{2 a b \left (b \,x^{2}+a \right )}+\frac {\left (A b +3 B a \right ) \sqrt {2}\, \left (\ln \left (\frac {x -\left (\frac {a}{b}\right )^{\frac {1}{4}} \sqrt {x}\, \sqrt {2}+\sqrt {\frac {a}{b}}}{x +\left (\frac {a}{b}\right )^{\frac {1}{4}} \sqrt {x}\, \sqrt {2}+\sqrt {\frac {a}{b}}}\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {x}}{\left (\frac {a}{b}\right )^{\frac {1}{4}}}+1\right )+2 \arctan \left (\frac {\sqrt {2}\, \sqrt {x}}{\left (\frac {a}{b}\right )^{\frac {1}{4}}}-1\right )\right )}{16 a \,b^{2} \left (\frac {a}{b}\right )^{\frac {1}{4}}}\) | \(146\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.50, size = 217, normalized size = 0.83 \begin {gather*} -\frac {{\left (B a - A b\right )} x^{\frac {3}{2}}}{2 \, {\left (a b^{2} x^{2} + a^{2} b\right )}} + \frac {{\left (3 \, B a + A b\right )} {\left (\frac {2 \, \sqrt {2} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} a^{\frac {1}{4}} b^{\frac {1}{4}} + 2 \, \sqrt {b} \sqrt {x}\right )}}{2 \, \sqrt {\sqrt {a} \sqrt {b}}}\right )}{\sqrt {\sqrt {a} \sqrt {b}} \sqrt {b}} + \frac {2 \, \sqrt {2} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} a^{\frac {1}{4}} b^{\frac {1}{4}} - 2 \, \sqrt {b} \sqrt {x}\right )}}{2 \, \sqrt {\sqrt {a} \sqrt {b}}}\right )}{\sqrt {\sqrt {a} \sqrt {b}} \sqrt {b}} - \frac {\sqrt {2} \log \left (\sqrt {2} a^{\frac {1}{4}} b^{\frac {1}{4}} \sqrt {x} + \sqrt {b} x + \sqrt {a}\right )}{a^{\frac {1}{4}} b^{\frac {3}{4}}} + \frac {\sqrt {2} \log \left (-\sqrt {2} a^{\frac {1}{4}} b^{\frac {1}{4}} \sqrt {x} + \sqrt {b} x + \sqrt {a}\right )}{a^{\frac {1}{4}} b^{\frac {3}{4}}}\right )}}{16 \, a b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 912 vs.
\(2 (185) = 370\).
time = 0.82, size = 912, normalized size = 3.49 \begin {gather*} -\frac {4 \, {\left (B a - A b\right )} x^{\frac {3}{2}} + 4 \, {\left (a b^{2} x^{2} + a^{2} b\right )} \left (-\frac {81 \, B^{4} a^{4} + 108 \, A B^{3} a^{3} b + 54 \, A^{2} B^{2} a^{2} b^{2} + 12 \, A^{3} B a b^{3} + A^{4} b^{4}}{a^{5} b^{7}}\right )^{\frac {1}{4}} \arctan \left (\frac {\sqrt {{\left (729 \, B^{6} a^{6} + 1458 \, A B^{5} a^{5} b + 1215 \, A^{2} B^{4} a^{4} b^{2} + 540 \, A^{3} B^{3} a^{3} b^{3} + 135 \, A^{4} B^{2} a^{2} b^{4} + 18 \, A^{5} B a b^{5} + A^{6} b^{6}\right )} x - {\left (81 \, B^{4} a^{7} b^{3} + 108 \, A B^{3} a^{6} b^{4} + 54 \, A^{2} B^{2} a^{5} b^{5} + 12 \, A^{3} B a^{4} b^{6} + A^{4} a^{3} b^{7}\right )} \sqrt {-\frac {81 \, B^{4} a^{4} + 108 \, A B^{3} a^{3} b + 54 \, A^{2} B^{2} a^{2} b^{2} + 12 \, A^{3} B a b^{3} + A^{4} b^{4}}{a^{5} b^{7}}}} a b^{2} \left (-\frac {81 \, B^{4} a^{4} + 108 \, A B^{3} a^{3} b + 54 \, A^{2} B^{2} a^{2} b^{2} + 12 \, A^{3} B a b^{3} + A^{4} b^{4}}{a^{5} b^{7}}\right )^{\frac {1}{4}} - {\left (27 \, B^{3} a^{4} b^{2} + 27 \, A B^{2} a^{3} b^{3} + 9 \, A^{2} B a^{2} b^{4} + A^{3} a b^{5}\right )} \sqrt {x} \left (-\frac {81 \, B^{4} a^{4} + 108 \, A B^{3} a^{3} b + 54 \, A^{2} B^{2} a^{2} b^{2} + 12 \, A^{3} B a b^{3} + A^{4} b^{4}}{a^{5} b^{7}}\right )^{\frac {1}{4}}}{81 \, B^{4} a^{4} + 108 \, A B^{3} a^{3} b + 54 \, A^{2} B^{2} a^{2} b^{2} + 12 \, A^{3} B a b^{3} + A^{4} b^{4}}\right ) - {\left (a b^{2} x^{2} + a^{2} b\right )} \left (-\frac {81 \, B^{4} a^{4} + 108 \, A B^{3} a^{3} b + 54 \, A^{2} B^{2} a^{2} b^{2} + 12 \, A^{3} B a b^{3} + A^{4} b^{4}}{a^{5} b^{7}}\right )^{\frac {1}{4}} \log \left (a^{4} b^{5} \left (-\frac {81 \, B^{4} a^{4} + 108 \, A B^{3} a^{3} b + 54 \, A^{2} B^{2} a^{2} b^{2} + 12 \, A^{3} B a b^{3} + A^{4} b^{4}}{a^{5} b^{7}}\right )^{\frac {3}{4}} + {\left (27 \, B^{3} a^{3} + 27 \, A B^{2} a^{2} b + 9 \, A^{2} B a b^{2} + A^{3} b^{3}\right )} \sqrt {x}\right ) + {\left (a b^{2} x^{2} + a^{2} b\right )} \left (-\frac {81 \, B^{4} a^{4} + 108 \, A B^{3} a^{3} b + 54 \, A^{2} B^{2} a^{2} b^{2} + 12 \, A^{3} B a b^{3} + A^{4} b^{4}}{a^{5} b^{7}}\right )^{\frac {1}{4}} \log \left (-a^{4} b^{5} \left (-\frac {81 \, B^{4} a^{4} + 108 \, A B^{3} a^{3} b + 54 \, A^{2} B^{2} a^{2} b^{2} + 12 \, A^{3} B a b^{3} + A^{4} b^{4}}{a^{5} b^{7}}\right )^{\frac {3}{4}} + {\left (27 \, B^{3} a^{3} + 27 \, A B^{2} a^{2} b + 9 \, A^{2} B a b^{2} + A^{3} b^{3}\right )} \sqrt {x}\right )}{8 \, {\left (a b^{2} x^{2} + a^{2} b\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 12.73, size = 162, normalized size = 0.62 \begin {gather*} \frac {2 A x^{\frac {3}{2}}}{4 a^{2} + 4 a b x^{2}} + 2 A \operatorname {RootSum} {\left (65536 t^{4} a^{5} b^{3} + 1, \left ( t \mapsto t \log {\left (4096 t^{3} a^{4} b^{2} + \sqrt {x} \right )} \right )\right )} - \frac {2 B a x^{\frac {3}{2}}}{4 a^{2} b + 4 a b^{2} x^{2}} - \frac {2 B a \operatorname {RootSum} {\left (65536 t^{4} a^{5} b^{3} + 1, \left ( t \mapsto t \log {\left (4096 t^{3} a^{4} b^{2} + \sqrt {x} \right )} \right )\right )}}{b} + \frac {2 B \operatorname {RootSum} {\left (256 t^{4} a b^{3} + 1, \left ( t \mapsto t \log {\left (64 t^{3} a b^{2} + \sqrt {x} \right )} \right )\right )}}{b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.65, size = 273, normalized size = 1.05 \begin {gather*} -\frac {B a x^{\frac {3}{2}} - A b x^{\frac {3}{2}}}{2 \, {\left (b x^{2} + a\right )} a b} + \frac {\sqrt {2} {\left (3 \, \left (a b^{3}\right )^{\frac {3}{4}} B a + \left (a b^{3}\right )^{\frac {3}{4}} A b\right )} \arctan \left (\frac {\sqrt {2} {\left (\sqrt {2} \left (\frac {a}{b}\right )^{\frac {1}{4}} + 2 \, \sqrt {x}\right )}}{2 \, \left (\frac {a}{b}\right )^{\frac {1}{4}}}\right )}{8 \, a^{2} b^{4}} + \frac {\sqrt {2} {\left (3 \, \left (a b^{3}\right )^{\frac {3}{4}} B a + \left (a b^{3}\right )^{\frac {3}{4}} A b\right )} \arctan \left (-\frac {\sqrt {2} {\left (\sqrt {2} \left (\frac {a}{b}\right )^{\frac {1}{4}} - 2 \, \sqrt {x}\right )}}{2 \, \left (\frac {a}{b}\right )^{\frac {1}{4}}}\right )}{8 \, a^{2} b^{4}} - \frac {\sqrt {2} {\left (3 \, \left (a b^{3}\right )^{\frac {3}{4}} B a + \left (a b^{3}\right )^{\frac {3}{4}} A b\right )} \log \left (\sqrt {2} \sqrt {x} \left (\frac {a}{b}\right )^{\frac {1}{4}} + x + \sqrt {\frac {a}{b}}\right )}{16 \, a^{2} b^{4}} + \frac {\sqrt {2} {\left (3 \, \left (a b^{3}\right )^{\frac {3}{4}} B a + \left (a b^{3}\right )^{\frac {3}{4}} A b\right )} \log \left (-\sqrt {2} \sqrt {x} \left (\frac {a}{b}\right )^{\frac {1}{4}} + x + \sqrt {\frac {a}{b}}\right )}{16 \, a^{2} b^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.17, size = 91, normalized size = 0.35 \begin {gather*} \frac {\mathrm {atanh}\left (\frac {b^{1/4}\,\sqrt {x}}{{\left (-a\right )}^{1/4}}\right )\,\left (A\,b+3\,B\,a\right )}{4\,{\left (-a\right )}^{5/4}\,b^{7/4}}-\frac {\mathrm {atan}\left (\frac {b^{1/4}\,\sqrt {x}}{{\left (-a\right )}^{1/4}}\right )\,\left (A\,b+3\,B\,a\right )}{4\,{\left (-a\right )}^{5/4}\,b^{7/4}}+\frac {x^{3/2}\,\left (A\,b-B\,a\right )}{2\,a\,b\,\left (b\,x^2+a\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________